package core;

import fileoperation.FileDeletion;
import gitobject.Blob;
import gitobject.Tree;
import repository.Repository;

import java.io.File;
import java.io.IOException;

public class JitHash {
    /**
     * Init repository in your working area.
     * @param filename
     * @throws IOException
     */
    public static void hash(String filename) throws IOException {
        try {
            File file = new File(filename);
            if (file.isDirectory()) {
                Tree tree = new Tree(file);
            }
            if (file.isFile()) {
                Blob blob = new Blob(file);
            }
        }catch(Exception e){
            e.printStackTrace();
        }
    }
}